This is a CLI command allowing a command string to be executed with an element in the string having .N appended to it where N is a random number between a specified min and max value.
Usage:
COMMANDSTRING :- Command string to be executed.
MAXVALUE :- Maximum random value.
MINVALUE :- Minimum random value.
DATAFILE :- Substring of command string to ad .N to.(not necessary if substring is the last item in the command string.
e.g.
This allows random backdrops.
RandomDataFile "SYS:prefs/wbpattern from SYS:prefs/presets/wbpattern.pre use" 10 d=wbpattern.pre
This arrangement will randomly run wbpattern with a prefs file of the form wbpattern.pre.N where N is number from 0 to 10
Why:
Allows easy implementation of random backdrops for WB3.x, of couse using this method any of the WB pref files can be made random.
Author Stuff:
This program is Free-Ware.
Feel free to send me a postcard.
This program will only work on WB 2.0 and above.
This program was written on an Amiga A1200 68882 6MB.